import request from '@/utils/request'

// 获取权限列表信息
export const getPermission = () => request.get('/sys/permission')
// 添加
export const addPermission = data => request.post('/sys/permission', data)
// 获取权限信息详情
export const editPermission = id => request.get(`/sys/permission/${id}`)
// 编辑
export const updatePermission = data => request.put(`/sys/permission/${data.id}`, data)
// 分配-员工-角色
export const updateAssign = data => request.put('/sys/user/assignRoles', data)

